﻿using System;

namespace yacomp.structs
{
    using System.IO;
    using yacomp.algo;

    internal struct struct_yacomp_path
    {
        internal string id;
        internal string pathname;
        internal DateTime time_edit;
        internal string commit;
        internal ushort commit_size;

        internal byte[] path_bytes;
        internal ushort path_bytes_size;
    }
    internal struct struct_yacomp_file
    {
        internal string id;
        internal string fullpath_localos; // 未进行压缩文件路径
        internal Stream not_compress_mem; // 如过路径为空
        internal Stream compress_mem;
        internal bool compress_tag;
        internal api_compress_algo algo;
        internal long data_offset;
        internal long offset;
        internal uint compress_size;
        internal uint not_compress_size;
        internal string filename;
        internal DateTime time_edit;

        internal uint crc32;
        internal string commit;
        internal ushort commit_size;

        internal byte[] filepath_bytes;
        internal ushort filepath_bytes_size;

    }
}
